import { ApiProperty } from '@nestjs/swagger';
import { IsEnum, IsOptional } from 'class-validator';
import { UserStatus, WorkspaceMemberRole } from '../../../types/enums';

export class UpdateWorkspaceMemberDto {
  @ApiProperty({
    description: '成员角色',
    enum: WorkspaceMemberRole,
    required: false,
    example: WorkspaceMemberRole.ADMIN
  })
  @IsOptional()
  @IsEnum(WorkspaceMemberRole)
  role?: WorkspaceMemberRole;

  @ApiProperty({
    description: '成员状态',
    enum: UserStatus,
    required: false,
    example: UserStatus.ACTIVE
  })
  @IsOptional()
  @IsEnum(UserStatus)
  status?: UserStatus;
} 